<?php
/**
 * 
 */
namespace app\home\controller\account;

use app\home\controller\Base;

class Show extends Base
{
	public function apply(){

		$params = $this->request->param();
		// 筛选参数
        $whereFields = ['page','type','status','start','end','limit'];
        // 参数数组
        $whereData = [];
        foreach($whereFields as $field):
            if(isset($params[$field]))
                $whereData[$field] = $params[$field];
        endforeach;

		$pageData = ['title'=>'充值提现申请记录'];
		$this->assign('pageData',$pageData);
		$this->assign('whereData',$whereData);
		return view();
	}

	public function transfer(){

		$pageData = ['title'=>'会员转账'];
		$this->assign('pageData',$pageData);
		return view();
		
	}

	public function charge(){

		$pageData = ['title'=>'充值申请'];
		$this->assign('pageData',$pageData);
		return view();
		
	}

	public function withdraw(){

		$pageData = ['title'=>'提现申请'];
		$this->assign('pageData',$pageData);
		return view();
		
	}

	public function convert(){

		$pageData = ['title'=>'货币转换'];
		$this->assign('pageData',$pageData);
		return view();
		
	}
	/**
	 * 资产变动记录
	 * @return [type] [description]
	 */
	public function record(){
		$params = $this->request->param();
		// 筛选参数
        $whereFields = ['page','type','status','start','end','limit'];
        // 参数数组
        $whereData = [];
        foreach($whereFields as $field):
            if(isset($params[$field]))
                $whereData[$field] = $params[$field];
        endforeach;

		$pageData = ['title'=>'交易记录'];
		$this->assign('pageData',$pageData);
		$this->assign('whereData',$whereData);
		return view();
	}

	public function record_transfer(){

		$params = $this->request->param();
		// 筛选参数
        $whereFields = ['page','target','start','end','limit'];
        // 参数数组
        $whereData = [];
        foreach($whereFields as $field):
            if(isset($params[$field]))
                $whereData[$field] = $params[$field];
        endforeach;

		$pageData = ['title'=>'会员转账记录'];
		$this->assign('pageData',$pageData);
		$this->assign('whereData',$whereData);
		return view();
		
	}

	public function record_convert(){
		$params = $this->request->param();
		// 筛选参数
        $whereFields = ['page','start','end','limit'];
        // 参数数组
        $whereData = [];
        foreach($whereFields as $field):
            if(isset($params[$field]))
                $whereData[$field] = $params[$field];
        endforeach;

		$pageData = ['title'=>'货币转换记录'];
		$this->assign('pageData',$pageData);
		$this->assign('whereData',$whereData);
		return view();
		
	}

	public function record_charge(){
		$params = $this->request->param();
		// 筛选参数
        $whereFields = ['page','start','end','limit'];
        // 参数数组
        $whereData = [];
        foreach($whereFields as $field):
            if(isset($params[$field]))
                $whereData[$field] = $params[$field];
        endforeach;

		$pageData = ['title'=>'充值记录'];
		$this->assign('pageData',$pageData);
		$this->assign('whereData',$whereData);
		return view();
		
	}

	public function record_withdraw(){
		$params = $this->request->param();
		// 筛选参数
        $whereFields = ['page','start','end','limit'];
        // 参数数组
        $whereData = [];
        foreach($whereFields as $field):
            if(isset($params[$field]))
                $whereData[$field] = $params[$field];
        endforeach;

		$pageData = ['title'=>'提现记录'];
		$this->assign('pageData',$pageData);
		$this->assign('whereData',$whereData);
		return view();
		
	}

}